<?php 

class Member {
	public $m_memberId = NULL;
	public $m_firstName;
	public $m_ssn;
	public $m_numberOfBoats;

 	
 	/**
   * Copies the properties to their member variables, this is used instead of constructor to 
   * Let the objects be created with different parameters, main reason for this is that I use fetch_object
   * to create objects...
   * 
   * This can also be done by using default parameters in the constructor like this:
   *  public function __construct($title = "", $description = "", $price = 0, $categoryId = 0)
   * 
   * @param string $title
   * @param string $description
   * @param int $price
   * @param int $categoryId
   */
  
  public static function Create($a_memberId, $a_firstName, $a_ssn){
  	$member = new Member();
	
	$member->m_memberId = $a_memberId;
	$member->m_firstName = $a_firstName;
	$member->m_ssn = $a_ssn;
	
	return $member;
  }	
}